iT邦幫忙

0

Setup Mac for Machine Learning (Tensorflow)

  • 分享至 

  • xImage
  •  

Install Visual Studio Code
ref: https://code.visualstudio.com
1 Download and Install VS code
2. Install Python Extension
https://ithelp.ithome.com.tw/upload/images/20240725/20168179VDsR8QuVpq.png
3. Istall Jupyter Extension
https://ithelp.ithome.com.tw/upload/images/20240725/20168179NlawvrsI9M.png
4. Set Jupyter ineractive window
https://ithelp.ithome.com.tw/upload/images/20240725/20168179uD3gbAR09p.png

Install pyenv
ref: (https://ithelp.ithome.com.tw/articles/10343037)
ref: (https://ithelp.ithome.com.tw/articles/10343058)

Install python and jupyter

  1. Install python:
pyenv install 3.10.10
  1. global python:
pyenv global 3.10.10
  1. Create virtual environment:
python -m venv myenv
source myenv/bin/activate 
  1. update pip:
pip install --upgrade pip
  1. install tensorflow and jupyter:
pip install tensorflow
pip install tensorflow-metal
pip install jupyter
  1. Confirm Tensorflow is working with jupyter:
jupyter notebook
import tensorflow as tf
tf.config.list_physical_devices()

https://ithelp.ithome.com.tw/upload/images/20240725/20168179UATkB0WEG9.png


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言